<?php
class pro_categories_Model  extends MY_Model {
	function __construct() {
		parent::__construct();	
	}
	function table(){
		return "pro_categories";
	}	
	function attribute(){
		return array("primary"=>"id");
	}

	function getCategory() {
		$this->db->where('parentId <>', '0');
		$this->db->where('display', '0');
		$query = $this->db->get($this->table());
		return $query->result();
	}
}